﻿@using Eco.ViewModel.Runtime
@using Eco.MVC
@using Eco.ObjectRepresentation
@model VMClass

@{
    ViewBag.Title = "GenericView";
}

@if (Model.Content is IObject)
{ 
  <h2>@Html.Label((Model.Content as IObject).DefaultStringRepresentation)</h2>
}

<section id="mainform">
@using (Html.BeginForm("Submit", "MDriven", FormMethod.Post))  
{
  <fieldset>
    <legend></legend>

     
      @* Use the section below for Bootstrap responsive UI*@
      <div class="container-fluid">
          <div class="row">
               <div class="col-md-2" style="vertical-align:top;">@Html.DisplayWecpofActions()</div>
              <div class="col-md-10" style="padding:10px;border-left: lightgray thin solid ;">@Html.DisplayWecpofUIBootstrap()</div>
          </div>
          <div class="row">
              <div class="col-md-offset-2 col-md-3">@Html.DisplayWecpofSubmitOkCancel()@*Handles submit button - and ok cancel when IsModal*@</div>
          </div>
      </div>


     @Html.ValidationSummary(false)
  </fieldset>
}
</section>

        @Scripts.Render("~/bundles/jquery", "~/bundles/jqueryui",  "~/bundles/bootstrap")
        @Html.WecpofScripts() @* handles wecpof actions logic *@

        <script type="text/javascript">
            $(document).ready(function () {
                $('.wecpofaction').addClass('nav');
            });

         </script>


